package org.aynu.propertyservice.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serial;
import java.sql.Timestamp;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 维修请求表
 * </p>
 *
 * @author 小粥
 * @since 2025-03-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("repair_requests")
public class RepairRequestsPo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "request_id", type = IdType.AUTO)
    private Integer requestId;

    @TableField("user_id")
    private Integer userId;

    @TableField("type")
    private String type; // 新增字段：报修类型

    @TableField("description")
    private String description;

    @TableField("phone")
    private String phone; // 新增字段：联系电话

    @TableField("status")
    private String status;

    @TableField("assigned_to")
    private Integer assignedTo;

    /** 解决于 */
    @TableField("resolved_at")
    private Timestamp resolvedAt;

    @TableField("created_at")
    private Timestamp createdAt;

    @TableField("updated_at")
    private Timestamp updatedAt;
}